<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<c:set var="queryList" value="${pageContext.request.contextPath}/myapp/list" />
	<div class="iframe-cot pull-right"  id="smIframe" style="background:#FFFFFF;"> 
                  <div class="right-form">
                      <form id="_query_form" action="" class="form-inline" onsubmit="return false;">
                          <div class="tb_search">
                          <div class="pull-left">
                          <span class="search-more">更多条件<i class="fa fa-angle-down ml5"></i></span>
                          	<div class="form-group">
                          		<label for="userName">用户名称：</label>
								<input type="text"  name="userName" id="condictionUserName" value="${fn:escapeXml(userName) }" />
                         	</div>

                          </div>
                          </div>
                      </form>
                  </div>
                  
                  <div class="line-e6e"></div>
                  
                  <div class="form-top">
                  	<div class="pull-left">
                  	
                  	<%-- <shiro:hasPermission name="common-service-myapp:add">
                  		<button class="btn btn-default" onclick="goAdd('${ctx}/myapp/add','新用户常用应用',['850px' , '550px'])"><i class="fa fa-plus mr5"></i>新增</button>
                    </shiro:hasPermission> --%>
                    <shiro:hasPermission name="common-service-myapp:edit">   
                        <button class="btn btn-default" onclick="goUpdate('${ctx}/myapp/edit','修改我的应用信息',['800px' , '550px'])"><i class="fa fa-pencil mr5"></i>编辑</button>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="common-service-myapp:delete">   
                        <button class="btn btn-default" onclick="deleteBatch('${ctx}/myapp/delete')"><i class="fa fa-times mr5"></i>删除</button>            
                     </shiro:hasPermission>   
                  	</div>
                  	<div class="pull-right">
                  	<shiro:hasPermission name="common-service-myapp:query">
                  		<a class="btn btn-orange" onclick="changePage('${queryList }/table','#_query_form','1','${pageBean.pageSize }',0,true)"><i class="fa fa-search mr5"></i>查询</a>
                		<a class="btn btn-blue" onclick="clearForm('#_query_form')"><i class="fa fa-trash-o mr5"></i>清空</a>
                  	</shiro:hasPermission>
                  	</div>
                  </div>
                 <div id="table-papination">
                 
				</div>
	</div>

 <!--main end-->    
 <script src="${ctx}/static/js/search-more.js"></script>  <!--更多查询条件--> 
 <script type="text/javascript">
 var currentPageNo = parseInt('${pageBean.currentPage}');
 var currentPageSize = parseInt('${pageBean.pageSize }');
 var totalPageCount = parseInt('${pageBean.totalPage}');
 var queryUrl = '${ctx}/myapp/list';
 
 $(document).ready(function(){
	 loadConent('${queryList }/table','',true);
 });
 </script>